﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using FAP.CaptchaCenter;

namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            CaptchaClient.OnReceiveClientCaptcha += CaptchaClient_OnReceiveClientCaptcha;
            //ChatConsoleClient.CaptchaClient.SendCaptcha("hello");
           
        }

        private void button1_Click(object sender, EventArgs e)
        {

            CaptchaClient.SendCaptcha(textBox1.Text);

        }

       
        void CaptchaClient_OnReceiveClientCaptcha(string _strCaptcha)
        {
            MessageBox.Show(_strCaptcha);
        }

    }
}
